package main

import (
	"thirdpaysdk/api/megaezgo"
	//"github.com/astaxie/beego"
	"io/ioutil"
)

func main() {
    
	privateKeyFile := "private.key"
    keyPEMBlock, err := ioutil.ReadFile(privateKeyFile)  //读取RSA私钥进文件到字节数组
    if err != nil {
        return
    }
	
	megaezgo.MicroAppPay("53941852001","115.159.73.78","LqvltXADZBLf","wxfed5e436d876b7b8","oGNk248nayQuzdfQmAkPnvKSa5Z8",
	            "31567892567999","201901041123","TWD","19C",1,keyPEMBlock)
    				
	/*
	megaezgo.Refunds("2017020100002314","2017020100002314","o6_bmasdasdasd6_2sgVt6gMZOPfL",
	                 "wxd678efh567hg6787","TWD",9999,9999)
	*/
	
}
